<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('学习列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('module:learn:edit')}]];
    var removeFlag = [[${@permission.hasPermi('module:learn:remove')}]];
    var prefix = ctx + "module/learn";

    $(function () {
        var options = {
            url: prefix + "/deptList",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "学习",
            showExport: false,
            showFooter: false,
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '主键id',
                    visible: false
                },
                {
                    field: 'deptName',
                    title: '小组名称'
                },
                {
                    field: 'score',
                    title: '学分'
                },
                {
                    field: 'remark',
                    title: '备注',
                    visible:false

                    // },
                    // {
                    //     title: '操作',
                    //     align: 'center',
                    //     formatter: function(value, row, index) {
                    //         var actions = [];
                    //         actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                    //         actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                    //         return actions.join('');
                    //     }
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>